package routers

import (
	"wx-uniapp-go/api/controller/sign_in"
	"wx-uniapp-go/internal/middleware"
)

// InitSignInRoute 初始化签到相关路由
func InitSignInRoute() {
	// 签到相关路由组
	signInGroup := engine.Group("/sign-in").Use(middleware.CheckLogin())
	{
		signInGroup.POST("", sign_in.SignIn)                   // 签到
		signInGroup.GET("/status", sign_in.GetSignInStatus)    // 获取签到状态
		signInGroup.GET("/records", sign_in.ListSignInRecords) // 获取签到记录列表
	}
}
